package com.random.group;

import java.util.ArrayList;
import java.util.List;

/**
 * @Author: YLTDMenglc
 * @Date: 2019/11/29
 * @Time: 15:49
 * @Description:
 */

public class Test {

    public static void main(String[] args) {
        String s = "0,1;3,6,4;7,1";
        String[] a = s.split(";");
        double[][] d;
        d = new double[a.length][];
        for (int i = 0; i < a.length; i++) {
            String[] s_num = a[i].split(",");
            for (int j = 0; j < s_num.length; j++) {
                d[i] = new double[s_num.length];
                d[i][j] = Double.parseDouble(s_num[j]);
                System.out.println("d[" + i + "][" + j + "] = " + d[i][j]);
            }
        }
    }


}
